
package com.zcp.wizard;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class AboutActivity extends Activity {
    private Button btn = null;

    private OnClickListener listener = null;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.about);
        MyBroadcastReceiver.register(this);

        btn = (Button) findViewById(R.id.btnBack);
        listener = new View.OnClickListener() {

            // @Override
            public void onClick(View v) {
                finish();
            }
        };
        btn.setOnClickListener(listener);
    }

    @Override
    public void onDestroy() {
        listener = null;
        btn = null;
        MyBroadcastReceiver.unRegister(this);
        super.onDestroy();
    }

    @Override
    public void finish() {
        super.finish();
        overridePendingTransition(R.anim.zoomin, R.anim.zoomout); // 此为自定义的动画效果，下面两个为系统的动画效果
    }
}
